package sum.book.common.core.model.query;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class PageQuery implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 页数
     */
    @Deprecated
    private Integer pageIndex;

    /**
     * 页数
     */
    @NotNull
    private Integer current;

    /**
     * 页码
     */
    @NotNull
    private Integer pageSize;

    /**
     * 排序字段
     */
    private String sortFiled;

    /**
     * 是否倒序(是：true，否：false)
     */
    private Boolean sortDesc;
}
